<template>
  <div id="sign_in_subscribe_index" >
     <router-view></router-view>
    <div class="footer" :class=" {pcStyle : this.fun.getPhoneEnv() == 3}" >
      <div class="foot-item" @click="handleLink(1)"  :class="foot_item_index=='1'?'active':''">
        <img v-if="foot_item_index=='1'" src="../../assets/images/sign_in_subscribe/sign_in_subscribe_home_c.png" />
        <img v-else src="../../assets/images/sign_in_subscribe/sign_in_subscribe_home.png" />
        <p>首页</p>
      </div>
      <div class="foot-item"  @click="handleLink(2)"   :class="foot_item_index=='2'?'active':''">
        <img v-if="foot_item_index=='2'" src="../../assets/images/sign_in_subscribe/sign_in_subscribe_sign_in_c.png" />
        <img v-else src="../../assets/images/sign_in_subscribe/sign_in_subscribe_sign_in.png" />
        <p>预约</p>
      </div>
      <div class="foot-item"  @click="handleLink(3)"    :class="foot_item_index=='3'?'active':''">
        <img v-if="foot_item_index=='3'" src="../../assets/images/sign_in_subscribe/sign_in_subscribe_school_c.png" />
        <img v-else src="../../assets/images/sign_in_subscribe/sign_in_subscribe_school.png" />
        <p>商学院</p>
      </div>
      <div class="foot-item"  @click="handleLink(4)"    :class="foot_item_index=='4'?'active':''">
        <img v-if="foot_item_index=='4'" src="../../assets/images/sign_in_subscribe/sign_in_subscribe_my_c.png" />
        <img v-else src="../../assets/images/sign_in_subscribe/sign_in_subscribe_my.png" />
        <p>我的</p>
      </div>
    </div>

  </div>
</template>

<script>
import controller from "./index_controller";
export default controller;

</script>

<style lang="scss" scoped>
.pcStyle {
  width: 375px !important;
}

#sign_in_subscribe_index {
  .footer {
    width: 100%;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3.3125rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    .foot-item {
      flex: 1;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;

      img {
        width: 1.25rem;
      }
    }

    .active {
      color: #f4b619;
    }
  }
}
</style>